$OpenBSD: patch-configure,v 1.2 2017/06/01 11:29:12 espie Exp $
Bogus python lib, doesn't link too well with clang.


Index: configure
--- configure.orig
+++ configure
@@ -10520,10 +10520,6 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ex
 fi
 DEBUG_NOOPT="-O0 -g"
 CUBEMAP_FLAGS="-DNV_CUBE_MAP"
-# Remove these flags beforehand... this should not remove functionality.
-CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g[^[:space:]]*//g' | sed -e 's/-O[^[:space:]]//g'`"
-CFLAGS="`echo $CFLAGS | sed -e 's/-g[^[:space:]]*//g' | sed -e 's/-O[^[:space:]]//g'`"
-VS_CXXFLAGS="`echo $VS_CXXFLAGS | sed -e 's/-g[^[:space:]]*//g' | sed -e 's/-O[^[:space:]]//g'`"
 
 # Check whether --enable-permissive or --disable-permissive was given.
 if test "${enable_permissive+set}" = set; then
@@ -10980,7 +10976,8 @@ then
 	    if test "x$is_macosx" = "xyes" ; then
 	    	    PYTHON_LIBS="$i/libpython${PYTHON_SHORT}.a"
 	    else
-	    	    PYTHON_LIBS="$i/libpython${PYTHON_SHORT}.a"
+		    PYTHON_LIBS="-L$i -lpython${PYTHON_SHORT}"
+	    	    #PYTHON_LIBS="$i/libpython${PYTHON_SHORT}.a"
 	    fi
             FOUND_LIBPYTHON_SO=yes
 	    break
